package com.zg.common.core.enm.service;

import com.zg.common.core.enm.BaseEnumService;
import com.zg.common.core.enm.ColumnTypeEnum;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author Zxb
 */
@Service
public class DataTypeEnumServiceImpl implements BaseEnumService {
    @Override
    public String getCode() {
        return "数据类型";
    }

    @Override
    public List<String> getList() {
        return Arrays.stream(ColumnTypeEnum.values())
                .map(t -> t.getName()).collect(Collectors.toList());
    }
}
